//
//  NSArray+Category.h
//  jhf
//
//  Created by 计海峰 on 2017/11/23 14:05:37.
//  Copyright © 2017年 计海峰. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSArray (Category)
//建议每次对Array操作时都用以下方法，提高健壮性
+ (instancetype)safeArrayWithObject:(id)object;

- (id)safeObjectAtIndex:(NSUInteger)index;

- (NSArray *)safeSubarrayWithRange:(NSRange)range;

- (NSUInteger)safeIndexOfObject:(id)anObject;
 
// 数组转成json 字符串
- (NSString *)toJSONStringForArray;
@end
